.rbUploadItemWapper {
  width: calc(8rem + 8px); // ant-upload-select的height+margin
  height: 8rem; // ant-upload-select的height
  margin-inline-end: 8px;
  margin-bottom: 8px;
  text-align: center;
  vertical-align: top;
  background-color: rgba(0, 0, 0, 0.02);
  border: 1px solid #d9d9d9;
  border-radius: 8px;
  cursor: pointer;

  .rbUploadItem {
    width: 8rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;

    .rbUploadItemThumbImgWapper {
      width: 100%;
      height: 4rem;
      margin: 0.25rem auto;

      .rbUploadItemThumbImg {
        width: 80%;
        height: 100%;
      }
    }

    .rbUploadItemImgName {
      max-width: 100%;
      font-weight: 500;
      color: #5a6677;
      margin-bottom: 0.25rem;
      padding: 0 0.25rem;
      text-align: center;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .rbUploadItemImgSize {
      width: 100%;
      font-size: 0.1rem;
      font-weight: 400;
      color: rgba(90, 102, 119, 0.45);
      padding: 0 0.25rem;
      text-align: center;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .rbUploadItemOperationWapper {
      position: absolute;
      top: 100%;
      opacity: 0;
      transition: all 0.4s ease-in-out;
      width: 100%;
      overflow: hidden;

      display: flex;
      justify-content: space-evenly;
      line-height: 1.15rem;

      .rbUploadItemOperationIconCommon {
        color: white;
        font-size: 1.15rem;
      }
    }
  }
}

.rbUploadItemWapper:hover {
  background: rgba(0, 0, 0, 0.4);

  .rbUploadItemThumbImgWapper,
  .rbUploadItemImgName,
  .rbUploadItemImgSize {
    opacity: 0.3;
  }

  .rbUploadItemOperationWapper {
    top: 45%;
    opacity: 1;
  }
}
